#检查软件包是否安装
#!/bin/bash
if rpm -q httpd &>/dev/null;then
	echo "软件包已经安装"
else
	echo "软件包未安装"
fi

